<?php if($msgtype=='videos' || $msgtype=='photos' || $msgtype == 'documents'){ ?> <script type="text/javascript" src="<?php echo base_url('assets/js/messages_upload.js'); ?>"></script> <?php } ?>
<input type="hidden" name="uid" id="uid" value="<?php echo myuser_helper::get_userid($email); ?>" />
<input type="hidden" name="baseurl" id="baseurl" value="<?php echo base_url();?>" />
<div id="fileupload-wrap">
<div class="help-tips" id="help-upload"> You may upload up to <?php echo ($msgtype=='photos' || $msgtype == 'videos')? '5&nbsp;'.$msgtype:'10 files';?>.</div>
	<div><input type="file" id="file_upload" name="file_upload" /></div>
</div>

<?php if($msgtype=='videos'){?>
<div id="youtube-wrap">
	<div id="youtube-link"><a href="#">Embed YouTube Links</a></div>
	<div id="youtube-in-wrap"><ul>
	<input type="text" class="youtube-in" value="" name="ylinks[]"/>
	<input type="text" class="youtube-in" value="" name="ylinks[]"/>
	<input type="text" class="youtube-in" value="" name="ylinks[]"/>
	<input type="text" class="youtube-in" value="" name="ylinks[]"/>
	<input type="text" class="youtube-in" value="" name="ylinks[]"/>
	</ul>
	</div>
</div>
<?php } ?>

<?php if($msgtype=='photos'){?>
<div class="or"> OR </div>
<div id="capture-btn" alt="Capture photo from your webcam" title="Capture photo from your webcam">Capture Photo</div>
<div class="help-tips" id="help-capture">You may capture up to 6 photos.</div>
<script src="<?php echo base_url();?>assets/js/photobooth/assets/fancybox/jquery.easing-1.3.pack.js"></script>
<script src="<?php echo base_url();?>assets/js/photobooth/assets/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script src="<?php echo base_url();?>assets/js/photobooth/assets/webcam/webcam.js"></script>
<script src="<?php echo base_url();?>assets/js/photobooth/assets/js/script.js"></script>
<!-- start capture photo from webcam -->
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/js/photobooth/assets/css/styles.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/js/photobooth/assets/fancybox/jquery.fancybox-1.3.4.css" />

<div id="captured-loader"></div>
<div id="photos"></div>
<div id="camera" style="position:absolute;z-index:999;top:265px;right:225px;height:335px;">
    <div id="screen" style=""></div>
    <div id="buttons">
    	<div class="buttonPane">
        	<a id="cancelButton" href="" class="greenButton">Cancel</a> <a id="shootButton" href="" class="blueButton">Shoot!</a>
        </div>
        <div class="buttonPane hidden">
        	<a id="cancelButton" href="" class="greenButton">Cancel</a> <a id="uploadButton" href="" class="blueButton">Upload!</a>
        </div>
		 <div class="settings"></div>
    </div> 
</div>
<!-- end webcam -->
<?php } ?>